package StudyCode.summary.Basic.myint;

import java.util.Scanner;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class RectanglePerimeter {
	public static void main(String[] args) {
		int width = 0;
		int length = 0;

		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入矩形长度并回车:");
		length = Integer.parseInt(scanner.nextLine());
		System.out.println("请输入矩形宽度并回车:");
		width = Integer.parseInt(scanner.nextLine());
		int perimeter = length * width;
		System.out.println("矩形周长是:" + perimeter);
	}
}
